package com.live.video.web.controller;

import com.live.video.authority.vo.CommonResponseVO;
import com.live.video.web.service.StatgeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author CHENCHEN
 * @company 北京学佳澳教育科技
 * @create 2022-07-26 12:40
 */
@Api(tags = "阶段")
@Slf4j
@RestController
@RequestMapping("stage")
public class StageController {

    @Autowired
    private StatgeService statgeService;

    @ApiOperation(value="获取所有阶段", notes = "根据专业获取所有阶段",
            httpMethod = "POST")
    @GetMapping("findStageList")
    public CommonResponseVO findStageList(@RequestHeader("Authorization") String token){
        log.info("token value is [{}]", token);
        return statgeService.findStageList(1549582939531005954L);
    }
}
